package com.ec.api.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("bill_details")
public class BillDetail {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联的账单ID
     */
    private Long billId;

    /**
     * 费用类型：accommodation(住宿), medication(药品), other(其他)
     */
    private String itemType;

    /**
     * 费用描述
     */
    private String itemDescription;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 关联ID (如药品ID、床位ID)
     */
    private Long relatedId;
}